var _util = require("util/util.js");

var product = {
	getProductList : function(data,resolve,reject){
		_util.request({
            url     : _util.getServerUrl('/product/list.do'),
            method  : 'post',
            data 	: data,
            success : resolve,
            error   : reject
        });
    },
    getBookDetail : function(data,resolve,reject){
        _util.request({
            url     : _util.getServerUrl('/product/detail.do'),
            method  : 'post',
            data 	: data,
            success : resolve,
            error   : reject
        })
    },
    search : function(data,resolve,reject){
        _util.request({
            url     : _util.getServerUrl('/product/search.do'),
            method  : 'post',
            data    : data,
            success : resolve,
            error   : reject
        })
    },
}

module.exports = product;